
export default ({ service, request, serviceForMock, requestForMock, mock, faker, tools }) => ({

  sys_menu_tree (data = { parentId: 0 }) {
    return request({
      url: '/auth/system/relational/roleAndMenu/getLoginTreeMenus?parentId=' + data.parentId,
      method: 'get'
    })
  },
  sys_menu_list (data = { parentId: 0 }) {
    return request({
      url: '/auth/system/menu/list?parentId=' + data.parentId,
      method: 'get'
    })
  },
  sysMenuFindById (data) {
    return request({
      url: '/auth/system/menu/findById?id=' + data.id,
      method: 'get'
    })
  },
  sysMenuUpdateById (data) {
    return request({
      url: '/auth/system/menu/update',
      method: 'post',
      data: data
    })
  },
  sysMenuInsert (data) {
    return request({
      url: '/auth/system/menu/insert',
      method: 'post',
      data: data
    })
  },
  sysMenuDeleteById (data) {
    return request({
      url: '/auth/system/menu/delete',
      method: 'post',
      data: data
    })
  }
})
